import random
person=int(input("请出拳：0-石头，1-剪刀，2-布"))
computer=random.randint(0,2)
print(f'电脑出拳：{computer}')
if ((person==0) and (computer==1)) or ((person==1) and (computer==2)) or ((person==2) and (computer==0)):
    print('玩家获胜！')
else:
    print('电脑获胜！')